{% if user.is_authenticated %}
<aside class="widget clearfix">{% load i18n %}
    <h5 class="short_headline"><span>{% trans "My profile" %}</span></h5>
    <ul class="navigation">
        <li>
            <a href="{% url 'accounts:profile' user.pk %}">{% trans "Profile" %}</a>
        </li>
        <li>
            <a href="{% url 'accounts:edit' %}">{% trans "Edit" %}</a>
        </li>
    </ul>
</aside>
{% endif %}